﻿using System;

namespace CsharpTrainer.Linq.Model
{
    public class CustomerOrder
    {
        public string CompanyName { get; set; }
        public string ContactName { get; set; }
        public string ContactTitle { get; set; }
        public int OrderID { get; set; }
        public DateTime OrderDate { get; set; }

        public override string ToString()
        {
            string format = "Company Name: {0}\nContact Name: {1}\n"
                          + "Contact Title: {2}\nOrder ID: {3}\nOrder Date:{4}\n";

            return string.Format(format, CompanyName, ContactName, ContactTitle, OrderID, OrderDate);
        }
    }
}
